-
-
Notifications
You must be signed in to change notification settings - Fork 15k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nixos/nextcloud: add an extraPackages option #371084
base: master
Are you sure you want to change the base?
Conversation
Fyi @SuperSandro2000 : as the nuschtos module for nextcloud does similar things, your might be interested in that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do add everything from environment.systemPackages
here already.
I'm a little hesitant to change that because of the potential fallout for people, but I'd very much prefer to have one of extraPackages
or systemPackages for that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, the manual build fails.
The manual fails also in my PRs (#370895 (comment)). I don't think the issue is related to this PR. |
This looks very much like it's related to this PR. |
Oh indeed!!! Oops :s |
Adds an extraPackages option to easily add packages to nextcloud's PATH.
b064eb5
to
7cd6171
Compare
Right, but that seems to be a very non-NixOS-y way of doing things. I don't want to have As for backwards-compatibility, maybe we can warn about for a release or two and then actually switch to |
@@ -323,6 +323,15 @@ in { | |||
''; | |||
}; | |||
|
|||
extraPackages = mkOption { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the sake of consistency, shouldn't these be added to nextcloud-cron & nextcloud-update-db?
Especially the former may also need things that one would add here.
"/run/current-system/sw" | ||
"/usr" | ||
"" # adds "/bin" to PATH | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What I meant with
but I'd very much prefer to have one of extraPackages or systemPackages for that.
was to either use these paths xor extraPackages for everything.
Given we have an agreement to go for extraPackages, I'd suggest:
- we add a warning to the release notes about the removal of these paths in 25.11 (to the 25.05 release notes)
- remove this section again
- and use
extraPackages
everywhere, as mentioned above.
Adds an extraPackages option to easily add packages to nextcloud's PATH.
This is useful to enable video thumbnail generation by adding
ffmpeg
there.I feel like we could also add
ffmpeg
toextraPackages
by default as it's quite useful, but maybe there's a reason not to do this.Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.